* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  @keyframes fade {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  html,
  body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
    color: #333;
  }
  header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .search-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    opacity: 0.75;
    justify-content: center;
    align-items: center;
  }
  
  .search-container input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    flex-grow: 1;
    margin-right: -1px; 
  }
  
  .search-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: #5c67f2;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .search-container button:hover {
    background-color: #4a54e1;
  }
  .book-grid {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    animation: fade 1s ease-in-out;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .book-item {
    background: #fff;
    border-radius: 4px;
    animation: fade 1s ease-in-out;
    height: 450px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  }
  
  .book-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
  }
  
  .book-item img:hover {
    opacity: 0.8;
  }
  
  .book-item h3 {
    padding: 10px;
    font-size: 18px;
    text-align: center;
  }
  @media (max-width: 768px) {
    .book-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .book-grid {
      grid-template-columns: 1fr;
    }
  
    .search-container input,
    .search-container button {
      font-size: 14px;
    }
  }
  .book-item a {
    text-decoration: none; 
    color: inherit; 
  }
  
  .book-item a:hover h3 {
    color: #5c67f2; 
  }
  
.contextmenu {
  width: 200px;
  border: none;
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.5); 
  background: linear-gradient(to bottom, #1a2a6c, #b21f1f, #fdbb2d); 
  position: absolute;
  top: 10px;
  left: 10px;
  display: none;
  z-index: 9999999;
  border-radius: 10px; 
  overflow: hidden;
}

.contextmenu li {
  height: 40px;
  line-height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
}

.contextmenu li:last-child {
  border-bottom: none;
}

.contextmenu li a {
  display: block;
  padding: 0 20px;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.contextmenu li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #8be9fd; 
  font-weight: bold;
}

.contextmenu:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: glow 2s infinite alternate; 
}

